package com.test.service;

import com.test.pojo.Article;
import com.test.pojo.SystemUser;
import com.test.util.helper.MyPage;
import com.test.vo.ResponseMessage;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.text.ParseException;

public interface SystemUserService {
    SystemUser login(SystemUser user);
    MyPage<Article> getAll(Byte newsState, String newsTitle, Integer pageNum, Integer pageSize);

    Article selectOneByTitle(String title);

    boolean deleteByPrimaryKey(String newsId);

    boolean insert(Article article);

    ResponseMessage add(Article article, MultipartFile multipartFile, HttpServletRequest request) throws ParseException;

    boolean deleteSelected(String[] items);

    ResponseMessage update(Article article, MultipartFile multipartFile, HttpServletRequest request) throws ParseException;

    Article selectOneByNewsId(String newsId);

}
